package com.xaaef.jvm;

/**
 * <p>
 *
 * @author Wang Chen Chen<932560435@qq.com>
 * @date 2022/2/15 20:46
 */

public class SubClassInitTest {

    static class Father {
        public static int A = 1;

        static {
            A = 2;
        }
    }

    static class Son extends Father {
        public static int B = A;
    }


    public static void main(String[] args) {
        System.out.println(Son.B);
    }

}
